package com.jcx.ldzj.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
/**
* 业精于勤荒于嬉，行成于思毁于随！
* @author ld
* @since 2021-07-19
*/
@Data
@TableName("user_role_relation")
@ApiModel(value="UserRoleRelation对象", description="用户角色关联表")
public class UserRoleRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户角色关联表id")
    @TableId("id_")
    private String id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id_")
    private String userId;

    @ApiModelProperty(value = "用户名称")
    @TableField(exist = false)
    private String userName;

    @ApiModelProperty(value = "角色id")
    @TableField("role_id_")
    private String roleId;

    @ApiModelProperty(value = "角色名称")
    @TableField(exist = false)
    private String roleName;


    @ApiModelProperty(value = "角色标识")
    @TableField(exist = false)
    private String roleCode;

}
